package com.cya.lotterysystem.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author ：陈奕安（3048279304@qq.com）
 * @date ：Created in 2025/11/3 19:57
 * @description：
 * @modified By：
 * @version:
 */
@AllArgsConstructor
@Getter
public enum ActivityUserStatusEnum {

    INIT(1,"初始化"),
    COMPLETED(2,"已被抽取");

    private final  Integer code;

    private final  String message;

    public static ActivityUserStatusEnum forName(String name){

        for (ActivityUserStatusEnum activityUserStatusEnum:ActivityUserStatusEnum.values()){

            if (activityUserStatusEnum.name().equalsIgnoreCase(name)){
                return activityUserStatusEnum;
            }
        }
        return null;
    }
}